Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@exodus/basic-utils
Advanced tools
[![npm][npm-image]][npm-url]] [npm-image]: https://img.shields.io/npm/v/@exodus/basic-utils.svg?style=flat-square [npm-url]: https://www.npmjs.com/package/@exodus/basic-utils
yarn add @exodus/basic-utils
import { SynchronizedTime } from '@exodus/basic-utils'
console.log(SynchronizedTime.now())
import { cleanInput } from '@exodus/basic-utils'
cleanInput('1.2abc@!#') // returns 1.2
Flatten an object to an array of [...path, leafValue]
arrays.
import { flattenToPaths } from '@exodus/basic-utils'
flattenToPaths({
harry: {
wand: 'holly',
},
grindie: {
wand: 'yew',
},
voldie: {
wand: 'yew',
},
})
// [
// ['harry', 'wand', 'holly'],
// ['grindie', 'wand', 'yew'],
// ['voldie', 'wand', 'yew'],
// ]
The following functions work like their lodash counterparts, with some caveats:
pick(users, ['name', 'age'])
but NOT pick(users, 'name')
. Please see the tests before you use them.Before using a function, check its unit tests to make sure you're using the API correctly.
import {
pick,
pickBy,
omit,
mapKeys,
mapValues,
keyBy,
orderBy,
isNil,
isObjectLike,
isPlainObject,
difference,
intersection,
partition,
set,
} from '@exodus/basic-utils'
See ./src/async.js and ./src/p-debounce.js for more details.
mapValuesAsync
, filterAsync
, partitionAsync
are the async counterparts of mapValues
, filter
, partition
respectively.pDebounce
: p-debounce, copied from the original temporarily to avoid having to ship this as ESM.FAQs
Basic lightweight lib with common utility classes and methods.
The npm package @exodus/basic-utils receives a total of 8,618 weekly downloads. As such, @exodus/basic-utils popularity was classified as popular.
We found that @exodus/basic-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.